131. Palindrome Partitioning java solution